import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 28779
 * Date: 2023-03-17
 * Time: 16:50
 */
public class Test {
    public static boolean sort(int[] arr){
        int count = 0;
        for (int i = 0; i < arr.length; i++) {
            if(arr[i] % 2 == 0){
                count = 0;
            }
            if(arr[i] % 2 != 0 ){
                count++;
                if(count == 3){
                    return true;
                }
            }
        }
        return false;
    }
    public static void main(String[] args) {
        int[] arr = {1,2,34,3,4,5,23,12};
        boolean ret = sort(arr);
        System.out.println(ret);
    }

/*    public static void main(String[] args) {
        int[] arr = {1,2,1,2,1,2,2,2};
        Arrays.sort(arr);
        System.out.println(arr[(arr.length/2)]);
    }*/
}
